package com.gistone.commis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;
/**
 * Created by wangfan on 2017/5/1.
 */
@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Property {
    private Integer propertyId;

    private Integer communityId;

    private  Community community;

    private Integer departId;
    private Depart depart;

    private Integer applyUserId;

    private String propertyCode;

    private String propertyName;

    private Integer typeId;

    private PropertyType propertyType;

    private String supplier;

    private String propertyBrand;

    private String specificationType;

    private String useStatus;

    private String propertyAdd;

    private String configurationUnit;

    private Double propertyWorth;

    private String remarks;
    private String deployTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date registerTime;

    private Integer count;

    private String serialNumber;

    private Integer isDelete;

    private Integer auditorId;

    private Integer addAuditState;

    private Integer delAuditState;
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date scrapTime;

    private Boolean isScrap;

    private Integer propertyState;
    public Property(Integer propertyId, Integer communityId, Integer departId, Integer applyUserId, String propertyCode, String propertyName, Integer typeId, String supplier, String propertyBrand, String specificationType, String useStatus, String propertyAdd, String configurationUnit, Double propertyWorth, String remarks, String deployTime, Date registerTime, Integer count, String serialNumber, Integer isDelete, Integer auditorId, Integer addAuditState, Integer delAuditState, Date scrapTime, Boolean isScrap,Integer propertyState) {
        this.propertyId = propertyId;
        this.communityId = communityId;
        this.departId = departId;
        this.applyUserId = applyUserId;
        this.propertyCode = propertyCode;
        this.propertyName = propertyName;
        this.typeId = typeId;
        this.supplier = supplier;
        this.propertyBrand = propertyBrand;
        this.specificationType = specificationType;
        this.useStatus = useStatus;
        this.propertyAdd = propertyAdd;
        this.configurationUnit = configurationUnit;
        this.propertyWorth = propertyWorth;
        this.remarks = remarks;
        this.deployTime = deployTime;
        this.registerTime = registerTime;
        this.count = count;
        this.serialNumber = serialNumber;
        this.isDelete = isDelete;
        this.auditorId = auditorId;
        this.addAuditState = addAuditState;
        this.delAuditState = delAuditState;
        this.scrapTime = scrapTime;
        this.isScrap = isScrap;
        this. propertyState =propertyState;
    }
}